package com.ruoyi.system.mapper;

import java.util.List;
import com.ruoyi.system.domain.TbDiyStrategy;
import com.ruoyi.system.domain.TbDiyStrategyPro;

/**
 * 策略生成Mapper接口
 * 
 * @author ruoyi
 * @date 2022-02-16
 */
public interface TbDiyStrategyMapper 
{
    /**
     * 查询策略生成
     * 
     * @param strategyCd 策略生成主键
     * @return 策略生成
     */
    public TbDiyStrategy selectTbDiyStrategyByStrategyNm(String strategyCd);

    /**
     * 查询策略生成列表
     * 
     * @param tbDiyStrategy 策略生成
     * @return 策略生成集合
     */
    public List<TbDiyStrategy> selectTbDiyStrategyList(TbDiyStrategy tbDiyStrategy);

    /**
     * 新增策略生成
     * 
     * @param tbDiyStrategy 策略生成
     * @return 结果
     */
    public int insertTbDiyStrategy(TbDiyStrategy tbDiyStrategy);

    /**
     * 修改策略生成
     * 
     * @param tbDiyStrategy 策略生成
     * @return 结果
     */
    public int updateTbDiyStrategy(TbDiyStrategy tbDiyStrategy);

    /**
     * 删除策略生成
     * 
     * @param strategyCd 策略生成主键
     * @return 结果
     */
    public int deleteTbDiyStrategyByStrategyNm(String strategyCd);

    /**
     * 批量删除策略生成
     * 
     * @param strategyCds 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteTbDiyStrategyByStrategyNms(String[] strategyCds);

    TbDiyStrategyPro selectTbDiyStrategyProByStrategyNm(String ids);

    public int deleteTbDiyStrategyProByStrategyCd(String strategyCd);

    public int insertTbDiyStrategyPro(TbDiyStrategyPro tbDiyStrategyPro);

}
